TARGET = aoi

CPPFLAGS = -g -W -Wall -pipe 

OBJECTS = $(patsubst %.cpp,%.o, $(wildcard *.cpp))

all: $(TARGET) $(TARGET_TEST) output

$(TARGET) : $(OBJECTS)
	$(CXX) -o $@ $^

.PHONY : output clean

clean :
	rm -f *.o $(TARGET)
	rm -rf output

output:
	rm -rf output
	mkdir -p output
	cp $(TARGET) ./output

